package spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import spring.service.BookService;

/**
 * @author Yancy xiao
 * @create 2023-01-01 19:07
 */
@Controller
public class BookController {
    @Autowired
    private BookService bookService;

    public void buybook(Integer userId, Integer bookId) {
        bookService.buyBook(userId, bookId);
    }
}
